﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200129F RID: 4767
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingLearnSkillScRsp : IMessage<SwordTrainingLearnSkillScRsp>, IMessage, IEquatable<SwordTrainingLearnSkillScRsp>, IDeepCloneable<SwordTrainingLearnSkillScRsp>, IBufferMessage
	{
		// Token: 0x17003C5E RID: 15454
		// (get) Token: 0x0600D5B7 RID: 54711 RVA: 0x0023EA31 File Offset: 0x0023CC31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingLearnSkillScRsp> Parser
		{
			get
			{
				return SwordTrainingLearnSkillScRsp._parser;
			}
		}

		// Token: 0x17003C5F RID: 15455
		// (get) Token: 0x0600D5B8 RID: 54712 RVA: 0x0023EA38 File Offset: 0x0023CC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingLearnSkillScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C60 RID: 15456
		// (get) Token: 0x0600D5B9 RID: 54713 RVA: 0x0023EA4A File Offset: 0x0023CC4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingLearnSkillScRsp.Descriptor;
			}
		}

		// Token: 0x0600D5BA RID: 54714 RVA: 0x0023EA51 File Offset: 0x0023CC51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingLearnSkillScRsp()
		{
		}

		// Token: 0x0600D5BB RID: 54715 RVA: 0x0023EA59 File Offset: 0x0023CC59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingLearnSkillScRsp(SwordTrainingLearnSkillScRsp other) : this()
		{
			this.skillId_ = other.skillId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D5BC RID: 54716 RVA: 0x0023EA8A File Offset: 0x0023CC8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingLearnSkillScRsp Clone()
		{
			return new SwordTrainingLearnSkillScRsp(this);
		}

		// Token: 0x17003C61 RID: 15457
		// (get) Token: 0x0600D5BD RID: 54717 RVA: 0x0023EA92 File Offset: 0x0023CC92
		// (set) Token: 0x0600D5BE RID: 54718 RVA: 0x0023EA9A File Offset: 0x0023CC9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x17003C62 RID: 15458
		// (get) Token: 0x0600D5BF RID: 54719 RVA: 0x0023EAA3 File Offset: 0x0023CCA3
		// (set) Token: 0x0600D5C0 RID: 54720 RVA: 0x0023EAAB File Offset: 0x0023CCAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D5C1 RID: 54721 RVA: 0x0023EAB4 File Offset: 0x0023CCB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingLearnSkillScRsp);
		}

		// Token: 0x0600D5C2 RID: 54722 RVA: 0x0023EAC2 File Offset: 0x0023CCC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingLearnSkillScRsp other)
		{
			return other != null && (other == this || (this.SkillId == other.SkillId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D5C3 RID: 54723 RVA: 0x0023EB00 File Offset: 0x0023CD00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D5C4 RID: 54724 RVA: 0x0023EB58 File Offset: 0x0023CD58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D5C5 RID: 54725 RVA: 0x0023EB60 File Offset: 0x0023CD60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D5C6 RID: 54726 RVA: 0x0023EB6C File Offset: 0x0023CD6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.SkillId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D5C7 RID: 54727 RVA: 0x0023EBC8 File Offset: 0x0023CDC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D5C8 RID: 54728 RVA: 0x0023EC20 File Offset: 0x0023CE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingLearnSkillScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D5C9 RID: 54729 RVA: 0x0023EC70 File Offset: 0x0023CE70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D5CA RID: 54730 RVA: 0x0023EC7C File Offset: 0x0023CE7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.SkillId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400556A RID: 21866
		private static readonly MessageParser<SwordTrainingLearnSkillScRsp> _parser = new MessageParser<SwordTrainingLearnSkillScRsp>(() => new SwordTrainingLearnSkillScRsp());

		// Token: 0x0400556B RID: 21867
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400556C RID: 21868
		public const int SkillIdFieldNumber = 10;

		// Token: 0x0400556D RID: 21869
		private uint skillId_;

		// Token: 0x0400556E RID: 21870
		public const int RetcodeFieldNumber = 12;

		// Token: 0x0400556F RID: 21871
		private uint retcode_;
	}
}
